package com.atguigu;

import java.util.Scanner;
public class HJ11数字颠倒 {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        String str=sc.nextLine();
        StringBuilder rs=new StringBuilder(str);

        rs.reverse();
        System.out.println(rs);
    }
}
